#ifndef LOG_GUARD
#define LOG_GUARD

#include <iostream>
#include <fstream>

#define assureSuccess(X)							\
{													\
	bool result = (X);								\
	if (result)										\
	{												\
		std::cout<<#X<<" suceed."<<std::endl;		\
	}												\
	else											\
	{												\
		std::cout<<#X<<" fail."<<std::endl;			\
		getchar();									\
		exit(-1);									\
	}												\
}



#endif